var express = require('express');
var router = express.Router();
var indexRouter = {};
var option = require('../../../controller/option');
var userController = require('../../../controller/user');

router.use(userController.checkLogin);

router.get('/', option.save);

router.get('/:id', option.get);

indexRouter.router = router;
module.exports = indexRouter;